import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入模版的全局样式
import '@/styles/index.scss'

//引入自定义插件对象：注册整个项目全局组件
import globalsComponent from '@/components/index'
//svg插件需要配置代码
import 'virtual:svg-icons-register'
//安装element-plus插件
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import router from './router'
import pinia from './store'
import './permisstion'
let app = createApp(App)
//安装elementplus,国际化语言
app.use(ElementPlus, {
  locale: zhCn,
})
// 注册路由
app.use(router)
//安装自定义插件
app.use(globalsComponent)
app.use(pinia)
app.mount('#app')
